home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Apple Game Sprockets / RAVE SDK 1.06 GM for MacOS / Example Projects / GameScene / GSPicture.h < prev    next >
Encoding:
Text File  |  1996-03-18  |  1.8 KB  |  96 lines  |  [TEXT/ALFA]

  1. // ===========================================================================
  2. //    
  3. //     GSPicture.h
  4. //    
  5. //    Copyright (C) 1996 Apple Computer, Inc.  All rights reserved.
  6. //
  7. // ===========================================================================
  8.  
  9.  
  10. #ifndef _GSPicture_h
  11. #define _GSPicture_h
  12.  
  13.  
  14. // ===========================================================================
  15. //    Includes
  16. // ===========================================================================
  17.  
  18. #include <stdio.h>
  19.  
  20. #if (kQAPlatform == kQAMacOS)
  21.     #include <Files.h>
  22. #endif
  23.  
  24. #include "RAVE.h"
  25. #include "GSError.h"
  26.  
  27. #include "GSColorTable.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33.  
  34. // ===========================================================================
  35. //    Types
  36. // ===========================================================================
  37.  
  38. typedef struct TGSPicture     TGSPicture;
  39.  
  40.  
  41. // ===========================================================================
  42. //    Prototypes
  43. // ===========================================================================
  44.  
  45.     TGSError
  46. GSPicture_New(
  47.     TGSPicture**            inPicture);
  48.     
  49.     TGSError
  50. GSPicture_NewFromPath(
  51.     TGSPicture**            inPicture,
  52.     TQAImagePixelType         inPixelType,
  53.     const char*                inPath);
  54.     
  55.     TGSError
  56. GSPicture_NewFromFile(
  57.     TGSPicture**            inPicture,
  58.     TQAImagePixelType         inPixelType,
  59.     FILE*                    inPictureFile);
  60.     
  61.     void
  62. GSPicture_Delete(
  63.     TGSPicture*                inPicture);
  64.  
  65.     long
  66. GSPicture_GetWidth(
  67.     TGSPicture*                inPicture);
  68.     
  69.     long
  70. GSPicture_GetHeight(
  71.     TGSPicture*                inPicture);
  72.     
  73.     long
  74. GSPicture_GetRowBytes(
  75.     TGSPicture*                inPicture);
  76.     
  77.     void*
  78. GSPicture_GetPixMap(
  79.     TGSPicture*                inPicture);
  80.     
  81.     TQAImagePixelType
  82. GSPicture_GetPixelType(
  83.     TGSPicture*                inPicture);
  84.     
  85.     TGSColorTable*
  86. GSPicture_GetColorTable(
  87.     TGSPicture*                inPicture);
  88.  
  89.  
  90. #ifdef __cplusplus
  91. }
  92. #endif
  93.  
  94.  
  95. #endif // _GSPicture_h
  96.